package com.asman.worker.rn;

/**
 * author : ybk
 * date   : 2019-07-18 19:50
 * desc   :
 */

import com.facebook.react.ReactPackage;
import com.facebook.react.bridge.NativeModule;
import com.facebook.react.bridge.ReactApplicationContext;
import com.facebook.react.uimanager.ViewManager;

import java.util.ArrayList;
import java.util.Collections;
import java.util.List;

import javax.annotation.Nonnull;

public class MyNativePackage implements ReactPackage {

    @Nonnull
    @Override
    public List<ViewManager> createViewManagers(@Nonnull ReactApplicationContext reactContext) {
        return Collections.emptyList();
    }

    @Nonnull
    @Override
    public List<NativeModule> createNativeModules(@Nonnull ReactApplicationContext reactContext) {
        List<NativeModule> modules = new ArrayList<>();
        modules.add(new ToastModule(reactContext));
        modules.add(new NativeMakeCall(reactContext));
        modules.add(new NativeDownLoad(reactContext));
        modules.add(new NativeMap(reactContext));
        modules.add(new NativePageJump(reactContext));
        modules.add(new NativePush(reactContext));
        modules.add(new NativeTakePhoto(reactContext));
        modules.add(new NativeMultiShow(reactContext));
        modules.add(new NativeSplashScreen(reactContext));
        modules.add(new NativeAppInfo(reactContext));
//        modules.add(new RNAliyunOssModule(reactContext));
        return modules;
    }
}
